Searching for matrix